package com.jmb.apiplatform.service;


import com.jmb.apiplatform.exception.ValidException;
import com.jmb.apiplatform.pojo.PermissionDao;
import com.jmb.apiplatform.pojo.PermissionTO;

import java.util.List;

public interface PermissionService {
    void savePermission(PermissionDao permissionDao) throws ValidException;
    PermissionDao finPermissionCode(String permissionName);
    List<PermissionTO> findPermission(Integer parentId);

    void modifyPermission(PermissionDao permissionDao) throws ValidException;
    List<PermissionDao> checkPermission(Integer id, String permissionCode) throws ValidException;

    void removeById(Integer id) throws ValidException;

    List<PermissionTO> findPermissionList(Integer permissionId);
}
